package com.gxa.controller;


import com.gxa.common.LayR;
import com.gxa.param.MyTableParam;
import com.gxa.service.CustomerCareService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/customer/care")
public class CustomerCareController {
    @Autowired
    private CustomerCareService service;
    @GetMapping("/list/page")
    public String list(){
        return "customer/customer-care-list";
    }


    @PostMapping("/list/data")
    @ResponseBody
    public LayR listData(MyTableParam param){
        return service.list(param);
    }
    public LayR getAll(){
        return service.findAll();
    }

}
